<?php $servicioUtil = new utilClass(); ?>
<?php $listaBanco= $servicioUtil->listaBanco(); ?> 
                                                 
<?php $listaMoneda = $servicioUtil->listaTipoMoneda(); ?>
<?php if($sf_user->hasAttribute($nombreSession)): ?>
<?php $listaSession = $sf_user->getAttribute($nombreSession); ?>
<table style="width: 100%;margin-left: 0px;" id="tablaInfomacionBancaria" >
    <tr  class="cabeceraDetalle">
        <td style="width: 205px;">Nombre</td>
        <td style="width: 165px;">Cuenta</td>
        <td style="width: 100px;">Moneda</td>
        <td style="width: 120px;">Opciones</td>
    </tr>
   
        <?php  foreach($listaSession as $obj){ ?>
         <tr id="fila-<?php echo $obj['id']; ?>">
                <td>                                        
                    <label id="lblNombreBanco-<?php echo $obj['id']; ?>"><?php echo $obj['nombreBanco'] ?></label>
                    <?php if(!$obj['isCombox']): ?>
                    <input style="display: none;text-align: center;" type="text" id="txtNombreBaco-<?php echo $obj['id']; ?>" />                                        
                    <?php else: ?>
                            <?php if(count($listaBanco)>0): ?>
                              <select style="display: none;width: 210px" class="selectorCombo" id="txtNombreBaco-<?php echo $obj['id']; ?>" > 
                                    <?php foreach($listaBanco as $row): ?>
                                             <option value="<?php echo $row->getId(); ?>" <?php if($obj['idCombox']==$row->getId()): ?> selected="selected" <?php endif; ?> ><?php echo ucwords(($row->getNombre()));  ?> </option>
                                     <?php endforeach; ?>
                               </select>
                            <?php endif; ?>    
                    <?php endif; ?>
                </td>
                <td><label id="lblCuentaBanco-<?php echo $obj['id']; ?>"><?php echo $obj['cuentaBanco'] ?></label> <input style="display: none;width: 150px;text-align: center;" type="text" id="txtCuentaBanco-<?php echo $obj['id']; ?>" /></td>
                <td><label id="lblMoneda-<?php echo $obj['id']; ?>"><?php echo $obj['moneda'] ?></label>
                    <select style="width: 65px;display: none;" id="cboMondea-<?php echo $obj['id']; ?>">" >
                        <?php foreach ($listaMoneda as $value) : ?>
                              <option value="<?php echo $value->getParametro(); ?>"><?php echo $value->getParametro(); ?></option>                               
                         <?php endforeach; ?>
                    </select>
                </td>
                <td><a title="grabar" style="display: none;" id="grabar-<?php echo $obj['id']; ?>" href="javascript:editarDetalle(<?php echo $obj['id']; ?>);"><?php echo image_tag('icon_save.png') ?></a><a title="Editar detalle" id="editar-<?php echo $obj['id']; ?>" href="javascript:changeFormatText(<?php echo $obj['id']; ?>)"><?php echo image_tag('icon_edit.png') ?></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="eliminar" title="Eliminar detalle" href="javascript:eliminarDetalle(<?php echo $obj['id']; ?>)"><?php echo image_tag('icon_delete.png') ?></a></td>
            </tr>
         <?php }; ?>                                
</table> 
<?php else: ?>
<h3>Ups algo se rompio :( </h3>
<?php endif; ?>